﻿<Window x:Class="LogWare.Views.Options"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Επιλογές" x:Name="OptionsWnd" Height="283" Width="463.047" ResizeMode="NoResize" ShowInTaskbar="False"
		DataContext="{Binding Options, Source={StaticResource Locator}}" Icon="/LogWare;component/Images/pack16.png">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <TabControl Grid.Column="0" Grid.Row="0">
            <TabItem Header="Αρχεία">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />                        
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Κατάλογος Προορισμού" HorizontalAlignment="Right" Width="140" ></Label>
                    <StackPanel Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" Orientation="Horizontal">
                        <TextBox x:Name="DirectoryTB" HorizontalAlignment="Left" Width="250" Margin="0,2" VerticalAlignment="Center" Text="{Binding Path=DestinationFolder, Mode=TwoWay}" />
                        <Button x:Name="OpenDirectoryBtn" Margin="5, 5" Background="Transparent" BorderThickness="0" Command="{Binding Path=DestinationPathBrowseCommand}">
                            <Image Source="/Images/FolderOpen.gif"/>
                        </Button>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem Header="Στοιχεία Εταιρείας">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Επωνυμία" HorizontalAlignment="Right" ></Label>
                    <TextBox Grid.Column="1" Grid.Row="0" x:Name="CompanyNameTB" HorizontalAlignment="Left" Width="300" VerticalAlignment="Center" Text="{Binding Path=CompanyName, Mode=TwoWay}" MaxLength="50" />

                    <Label Content="Α.Φ.Μ." HorizontalAlignment="Right" Grid.Column="0" Grid.Row="1" ></Label>
                    <TextBox Grid.Column="1" Grid.Row="1" x:Name="TaxCodeTB" HorizontalAlignment="Left" Width="300" VerticalAlignment="Center" Text="{Binding Path=CompanyTaxCode, Mode=TwoWay}" MaxLength="50"/>

                    <Label Content="Δ.Ο.Υ." HorizontalAlignment="Right" Grid.Column="0" Grid.Row="2" ></Label>
                    <TextBox Grid.Column="1" Grid.Row="2" x:Name="TaxOfficeTB" HorizontalAlignment="Left" Width="300" VerticalAlignment="Center" Text="{Binding Path=CompanyTaxOffice, Mode=TwoWay}" MaxLength="50"/>

                    <Label Content="Διεύθυνση" HorizontalAlignment="Right" Grid.Column="0" Grid.Row="3" ></Label>
                    <TextBox Grid.Column="1" Grid.Row="3" x:Name="AddressTB" HorizontalAlignment="Left" Width="300" VerticalAlignment="Center" Text="{Binding Path=CompanyAddress, Mode=TwoWay}" MaxLength="50"/>

                    <Label Content="T.K." HorizontalAlignment="Right" Grid.Column="0" Grid.Row="4" ></Label>
                    <TextBox Grid.Column="1" Grid.Row="4" x:Name="ZipTB" HorizontalAlignment="Left" Width="300" VerticalAlignment="Center" Text="{Binding Path=CompanyZip, Mode=TwoWay}" MaxLength="50"/>

                    <Label Content="Πόλη" HorizontalAlignment="Right" Grid.Column="0" Grid.Row="5" ></Label>
                    <TextBox Grid.Column="1" Grid.Row="5" x:Name="CityTB" HorizontalAlignment="Left" Width="300" VerticalAlignment="Center" Text="{Binding Path=CompanyCity, Mode=TwoWay}" MaxLength="50"/>

                    <Label Content="Τηλέφωνο" HorizontalAlignment="Right" Grid.Column="0" Grid.Row="6" ></Label>
                    <TextBox Grid.Column="1" Grid.Row="6" x:Name="TelephoneTB" HorizontalAlignment="Left" Width="300" VerticalAlignment="Center" Text="{Binding Path=CompanyTelephone, Mode=TwoWay}" MaxLength="50"/>

                </Grid>
            </TabItem>
        </TabControl>
        <Grid Grid.Column="0" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>            
            <Button Margin="5" Grid.Column="1" Grid.Row="0" x:Name="OKBtn" Content="ΟΚ" HorizontalAlignment="Left" Width="75" IsDefault="True" Click="OKBtn_Click"/>
            <Button Margin="5" Grid.Column="2" Grid.Row="0" Content="Άκυρο" HorizontalAlignment="Left" Width="75" IsCancel="True"/>
        </Grid>

	</Grid>
</Window>
